package com.atguigu.util.homework1;

import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */
public class TriangleToolsTest {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.print("请输入三角形的三边长：");
        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();

        if (TriangleTools.isTriangle(a,b,c)) {
            System.out.println("三角形周长：" + TriangleTools.perimeter(a, b, c));
            System.out.println("三角形面积：" + TriangleTools.area(a, b, c));
            System.out.println("是否构成等边三角形：" + TriangleTools.isEquilateralTriangle(a, b, c));
            System.out.println("是否构成等腰三角形：" + TriangleTools.isIsoscelesTriangle(a, b, c));
            System.out.println("是否构成直角三角形：" + TriangleTools.isRightTriangle(a, b, c));
        }else{
            System.out.println("不构成三角形");
        }

        input.close();
    }
}
